import {WeaTools} from 'ecCom'

/**模版列表 */
/**获取模板列表*/
export const getFlowTemplateList = (params) => {
    return WeaTools.callApi('/api/workflow/freeFlow/getFlowTemplateList', 'GET', params);
}
/**保存模板*/
export const saveFlowTemplate = (params) => {
    return WeaTools.callApi('/api/workflow/freeFlow/saveFlowTemplate', 'POST', params);
}
/**获取添加模板基础数据*/
export const getAddTemplateBaseData = (params) => {
    return WeaTools.callApi('/api/workflow/freeFlow/getAddTemplateBaseData', 'GET', params);
}
/**模板共享保存*/
export const saveTemplateShare = (params) => {
    return WeaTools.callApi('/api/workflow/freeFlow/saveTemplateShare', 'POST', params);
}
/**获取模板共享列表*/
export const getTemplateShareList = (params) => {
    return WeaTools.callApi('/api/workflow/freeFlow/getTemplateShareList', 'GET', params);
}
/**删除模板*/
export const deleteTemplate = (params) => {
    return WeaTools.callApi('/api/workflow/freeFlow/deleteTemplate', 'POST', params);
}
/**删除模板共享*/
export const deleteTemplateShare = (params) => {
    return WeaTools.callApi('/api/workflow/freeFlow/deleteTemplateShare', 'POST', params);
}
/**自由流程流程图从模板导入*/
export const importFromTemplate = (params) => {
    return WeaTools.callApi('/api/workflow/freeFlow/importFromTemplate', 'POST', params);
}